package com.skywolf.chem.manager.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * Created by pei_pei on 2021/9/29.
 */
@Data
public class ActivityGroupVo {
    @ApiModelProperty(value = "组别ID")
    private Long id;

    @ApiModelProperty(value = "组别名称")
    private String groupName;

    @ApiModelProperty(value = "价格")
    private BigDecimal price;

    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "最小年龄")
    private LocalDateTime minAge;

    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "最大年龄")
    private LocalDateTime maxAge;

    @ApiModelProperty(value = "参赛人数")
    private Integer stock;

    @ApiModelProperty(value = "性别 0为女 1为男 2不限")
    private Integer gender;

    @ApiModelProperty(value = "组别类型名称")
    private String groupType;

    @ApiModelProperty(value = "三级联动地址 通过-拼接(省-市-区)")
    private String address;

    @ApiModelProperty(value = "详细地址")
    private String addressDetail;

    @ApiModelProperty(value = "支付类型 0为线上支付 1为线下支付")
    private Integer payType;

    @ApiModelProperty(value = "赛事编号")
    private long matchId;

    @ApiModelProperty(value = "兼报其他组的组名,逗号分隔")
    private String enrolls;

    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "比赛开始时间")
    private LocalDateTime matchStartTime;

    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "比赛结束时间")
    private LocalDateTime matchEndTime;

    @ApiModelProperty(value = "用户自定义标签填写信息")
    private List<CustomItemVo> customItems;

}
